/* 相册页面特定样式 */
.album-header {
    padding: 60px 0;
    background-color: white;
    text-align: center;
}

.album-header h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.album-header p {
    color: #666;
    max-width: 600px;
    margin: 0 auto 30px;
}

.album-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.album-filter select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    cursor: pointer;
    background-color: white;
}

/* 相册分类标签 */
.album-categories {
    padding: 50px 0;
}

.category-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 10px;
    flex-wrap: wrap;
}

.category-tab {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    border-radius: 30px;
    transition: var(--transition);
}

.category-tab:hover {
    color: var(--primary-color);
    background-color: rgba(255, 107, 107, 0.1);
}

.category-tab.active {
    color: white;
    background-color: var(--primary-color);
}

/* 相册网格 */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.album-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    cursor: pointer;
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.album-cover {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.album-card:hover .album-cover img {
    transform: scale(1.05);
}

.album-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0,0,0,0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.album-info {
    padding: 15px;
}

.album-info h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
    color: var(--dark-color);
}

.album-info .date {
    color: var(--gray-color);
    font-size: 14px;
}

/* 相册照片模态框 */
.modal-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.photo-container {
    background-color: #f1f1f1;
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-container img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.photo-info {
    display: flex;
    flex-direction: column;
}

.photo-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.photo-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-like {
    color: var(--primary-color);
}

.btn-like i {
    color: var(--primary-color);
}

.btn-download:hover, .btn-delete:hover {
    background-color: #f1f1f1;
}

.photo-details {
    margin-bottom: 20px;
}

.photo-details h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.photo-details p {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

/* 照片评论区 */
.photo-comments h4 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.comments-list {
    margin-bottom: 20px;
}

.comment {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.comment-content {
    flex: 1;
}

.comment-content h5 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.comment-content p {
    font-size: 14px;
    margin-bottom: 5px;
}

.comment-date {
    font-size: 12px;
    color: var(--gray-color);
}

.add-comment {
    display: flex;
    gap: 10px;
}

.add-comment textarea {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    resize: none;
    height: 60px;
    font-family: var(--font-family);
}

.add-comment textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .photo-container {
        max-height: 50vh;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .albums-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .album-controls {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .albums-grid {
        grid-template-columns: 1fr;
    }
    
    .category-tabs {
        overflow-x: auto;
        padding-bottom: 10px;
        justify-content: flex-start;
    }
    
    .category-tab {
        white-space: nowrap;
    }
}

/* 瀑布流照片布局 */
.photo-gallery {
    column-count: 3;
    column-gap: 20px;
    padding: 40px 0;
}

.gallery-item {
    margin-bottom: 20px;
    break-inside: avoid;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 15px;
    color: white;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay h4 {
    margin-bottom: 5px;
}

.gallery-item-overlay .date {
    font-size: 12px;
    opacity: 0.8;
}

@media (max-width: 992px) {
    .photo-gallery {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .photo-gallery {
        column-count: 1;
    }
}

/* 照片上传预览区 */
.upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.preview-item {
    width: 100px;
    height: 100px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background-color: rgba(0,0,0,0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
} 